
/***********************************************************************
 * Load class
 * 
 * Implements the 'save' command
 *
 * Signature:
 *  public static Orbit create ();
 *  public String name ();
 *  public boolean execute (String[] arguments);
 ***********************************************************************/

public class Load extends Command {

  protected Load () {
    super("load");
  }

  public static Load create () {
    return new Load();
  }

  public boolean loadGameState(String filename) {
    
  }

  public boolean fileExists(String filename) {
    return true;
  }

  public boolean execute (String[] args) {
    if(fileExists(args[0])) {
      return loadGameState(args[0]);
    } else {
      System.out.println("invalid filename, game was not saved: " + args[0]);
      return false;
    }
  }

}